package com.sci99.ex.model;

public class Chapter {
	private Long id;
	private Long course_id;
	private String name;
	private String video_url;
	private String description;
	private Long order_id;
	private boolean active = false;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCourse_id() {
		return course_id;
	}

	public void setCourse_id(Long course_id) {
		this.course_id = course_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVideo_url() {
		return video_url;
	}

	public void setVideo_url(String video_url) {
		this.video_url = video_url;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getOrder_id() {
		return order_id;
	}

	public void setOrder_id(Long order_id) {
		this.order_id = order_id;
	}

	public boolean isActive() {
		return active;
	}

	public String getActiveStr() {
		return this.active ? "启用" : "停用";
	}

	public void setActive(boolean active) {
		this.active = active;
	}

}
